<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Trip By Purpose</title>
    <link rel="stylesheet" href="${resource(dir: 'current', file: 'style.css')}" type="text/css">
  </head>
  <body>
    <div id="content">
    <h1>Trips With ${params.trips} Purpose</h1>
      <g:form action="current" method="post">
        <table border="1">
          <tr id="columnTitle">
            <td>Name</td>
            <td>City</td>
            <td>Purpose</td>
            <td>Budget</td>
          </tr>
          <g:each in="${budgets}">
            <tr>
              <td>${it.trip.name}</td>
              <td>${it.trip.city}</td>
              <td>${it.trip.purpose}</td>
              <td>${'$ '+it.total}</td>
            </tr>
          </g:each>
        </table>
        <g:submitButton class="buttons" name="current" action="current" value="Back" />
      </g:form>
    </div>
  </body>
</html>
